package com.jic.interaction.hereWeGo.controller;

import com.jic.interaction.hereWeGo.common.utlis.RestResult;
import com.jic.interaction.hereWeGo.model.vo.request.OrderStatusRequest;
import com.jic.interaction.hereWeGo.model.vo.response.OrderStatusResponse;
import com.jic.interaction.hereWeGo.service.OrderStatusService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Api(value="订单状态接口", tags = "订单状态接口", description = "OrderStarusController")
@RestController
public class OrderStarusController {

    @Resource
    private OrderStatusService service;

    @PostMapping("mall/order/{account}/query")
    @ApiOperation(value = "查询订单状态")
    @ResponseBody
    private RestResult<OrderStatusResponse> query(@RequestBody OrderStatusRequest orderStatusRequest) throws Exception {
        return service.queryOrderStatus(orderStatusRequest);
    }





}
